Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude obsolete entries from STATES_AND_TERRITORIES #39

Conversation

KlaasH
Copy link

@KlaasH KlaasH commented Apr 4, 2019

Fixes this:

>>> import us
>>> set(us.STATES_AND_TERRITORIES) - (set(us.STATES) | set(us.TERRITORIES))
set([<State:Orleans>, <State:Dakota>, <State:Philippine Islands>])

by no longer adding obsolete states to STATES_AND_TERRITORIES.

Creates a new ALL list (but doesn't export it) for use in the functions that were using STATES_AND_TERRITORIES as "all" (lookup and mapping).

Resolves issue #26.

Fixes this:
>>> import us
>>> set(us.STATES_AND_TERRITORIES) - (set(us.STATES) | set(us.TERRITORIES))
set([<State:Orleans>, <State:Dakota>, <State:Philippine Islands>])

by no longer adding obsolete states to STATES_AND_TERRITORIES.
Creates a new ALL list (but doesn't export it) for use in the functions
that were using STATES_AND_TERRITORIES as "all" (`lookup` and `mapping`).

Resolves issue unitedstates#26.
jcarbaugh added a commit that referenced this pull request Nov 27, 2019
@jcarbaugh jcarbaugh closed this in 6d21643 Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant